1 using System;
2 using
System.Collections.Generic;
3 using
System.Drawing;
4 using
System.IO;
5 using
System.Windows.Forms;
6
7 using
Excel = Microsoft.Office.Interop.Excel;
8 using
System.Reflection;
9
10 using
PatternRecognition.FingerprintRecognition.Core;
11 using
PatternRecognition.FingerprintRecognition.FeatureDisplay;
12
13 namespace
Fingerprint_Recognition_Project
14 {
15     
public partial class Form2 : Form
16     {
17         
public Form2()
18         {
19             InitializeComponent();
20         }
21
22         
private void Form2_Load(object sender, EventArgs e)
23         {
24
25             
//try
26             
//{
27             
// System.Data.OleDb.OleDbConnection MyConnection;
28             
// System.Data.OleDb.OleDbCommand myCommand = new System.Data.OleDb.OleDbCommand();
29             
// string sql = null;
30             
// MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.jet.OLEDB.4.0;Data Source='c:\\DB.xlsl';Extended Properties=Excel 8.0;");
31             
// MyConnection.Open();
32             
// myCommand.Connection = MyConnection;
33             
// MessageBox.Show("connected");
34             
// // sql = "Update [Sheet1$] set name = 'New Name' where id=1";
35             
// // myCommand.CommandText = sql;
36             
// // myCommand.ExecuteNonQuery();
37             
// // MyConnection.Close();
38             
//}
39             
//catch (Exception ex)
40             
//{
41             
// MessageBox.Show(ex.ToString());
42             
//}
43
44         }
45     }
46 }


Gõ tìm kiếm nhanh...